<template>
    <div>
<van-swipe :autoplay="3000" lazy-render>
     <van-swipe-item><img src="../views/img/首页_02.jpg" alt="" style="width: 100%;
     height: 200px;"></van-swipe-item>
  <van-swipe-item v-for="image in images" :key="image">
    <img :src="image" style="width: 100%;
     height: 200px;"/>
  </van-swipe-item>
</van-swipe>

    </div>
</template>

<script setup>
    const images = [
      'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
      'https://fastly.jsdelivr.net/npm/@vant/assets/apple-4.jpeg',
      'https://fastly.jsdelivr.net/npm/@vant/assets/apple-5.jpeg',
      'https://fastly.jsdelivr.net/npm/@vant/assets/apple-6.jpeg',
    ];
</script>

<style lang="scss" scoped>

</style>